#!/usr/bin/python
# -*- coding: utf-8 -*-

'''
 PyIPS - Python image processing server/script
 
 author: Sergey Polzunov aka Traut
 email: traut.box[at]gmail.com
 blog: http://out.com.ua/blog
    
 Version 0.1
'''
import os

def getFile(name, home_dir):
    full_name = os.path.join(home_dir, name)

    if not os.path.exists(full_name):
        return None

    return open(full_name, 'rb')
    
 